package com.quickpass.order.client;

import com.ruoyi.common.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@Component
@FeignClient(value = "ruoyi-coupon")
public interface CouponClient {
    /**
     * @description: 使用优惠券
     * @return:
     * @author: 弔人
     * @time: 2023/2/8 13:44
     */
    @PostMapping("/coupon/useCoupon/{id}")
    public AjaxResult useCoupon(@PathVariable("id") Long id);
}
